import frontLayout from '@/layout/front/index';
export default [{
	path: '/front',
	name: 'Front',
	redirect: '/front/index',
	meta: {
		title: '首页'
	},
	component: frontLayout,
	children: [{
		path: 'index',
		name: 'frontIndex',
		meta: {
			title: "前台首页",
			isIndex: true,
			isNoCrumbs: true
		},
		component: () => import('@/views/front/index/index')
	}, {
		path: 'message',
		name: 'myMessage',
		meta: {
			title: '我的消息',
			isNeedLogin: true
		},
		component: () => import('@/views/front/message/index')
	}, {
		path: 'hotrank',
		name: 'hotRank',
		meta: {
			title: '热点排行'
		},
		component: () => import('@/views/front/hotrank/index')
	}, {
		path: 'resource',
		name: 'frontResource',
		meta: {
			title: '资源浏览'
		},
		redirect: 'resource/list',
		component: () => import('@/views/front/resource/index'),
		children: [{
			path: 'list',
			name: 'frontResourceList',
			meta: {
				title: '资源列表'
			},
			component: () => import('@/views/front/resource/list')
		}, {
			path: ':id',
			name: 'frontResourceDetail',
			meta: {
				title: '资源详情',
				isNoCrumbs: true,
				isNoFooter: true
			},
			component: () => import('@/views/front/resource/detail')
		}]
	}, {
		path: 'news',
		name: 'frontNews',
		meta: {
			title: '新闻公告'
		},
		redirect: 'news/list',
		component: () => import('@/views/front/news/index'),
		children: [{
			path: 'list',
			name: 'frontNewsList',
			meta: {
				title: '新闻列表'
			},
			component: () => import('@/views/front/news/list')
		}, {
			path: 'announce',
			name: 'frontNewsAnnounce',
			meta: {
				title: '公告列表'
			},
			component: () => import('@/views/front/news/announce')
		}, {
			path: 'list',
			name: 'frontNewsDetail',
			meta: {
				title: '新闻公告详情'
			},
			component: () => import('@/views/front/news/detail')
		}]
	}, {
		path: 'search',
		name: 'frontSearch',
		meta: {
			title: '资源检索'
		},
		redirect: 'search/single',
		component: () => import('@/views/front/search/index'),
		children: [{
			path: 'single',
			name: 'singleSearch',
			meta: {
				title: '基本检索'
			},
			component: () => import('@/views/front/search/single'),
		}, {
			path: 'advanced',
			name: 'advancedSearch',
			meta: {
				title: '高级检索'
			},
			component: () => import('@/views/front/search/advanced')
		}, {
			path: 'veriface',
			name: 'verifaceSearch',
			meta: {
				title: '人脸检索'
			},
			component: () => import('@/views/front/search/veriface')
		}]
	}]
}]